<?php
namespace app\models;

use yii\base\Model;
use yii\web\UploadedFile;

/**
 * UploadForm is the model behind the upload form.
 */
class ProjectUploadForm extends Model
{
    /**
     * @var UploadedFile file hw_api_attribute()
     */
    public $projectPlan;
    public $externalImage;
    public $insideImage;
    /**
     * @return array the validation rules.
     */
    public function rules()
    {   
        return [
            [['projectPlan'], 'file', 'extensions' => 'doc, docx'],
            [['externalImage'],'file', 'extensions' => 'jpg'],
            [['insideImage'],'file', 'extensions' => 'jpg']
        ];
    }
}